package models.ru.paralainer.chat.server.dao;

import java.util.Date;
import java.util.List;

import models.ru.paralainer.chat.server.dao.impl.MessageDAOImpl;
import models.ru.paralainer.chat.server.domain.Message;

/**
 * User: stalov
 * Date: 22.05.12
 * Time: 14:11
 */
public interface MessageDAO extends GenericDAO<Message> {

    public static final MessageDAO INSTANCE = new MessageDAOImpl();

    public List<Message> getAll();

    List<Message> getOlder(Date date);

    List<Message> getOlderByMessageId(Long id);
}
